import { createRouter, createWebHistory } from 'vue-router';
import WorksShowView from '../views/WorksShowView.vue';
import DoHomeworkView from "@/views/DoHomeworkView.vue";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/show',
      name: 'workshow',
      component: WorksShowView
    },
    {
      path:'/doWork/:id?/:sub?',
      name:'doWork',
      component: DoHomeworkView
    }
  ]
})

export default router
